home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 9
/
Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO
/
009a
/
snpd0493.zip
/
SCRNMACS.H
< prev
next >
Wrap
Text File
|
1993-04-05
|
1KB
|
40 lines
.I 4 17
#if defined(__TURBOC__)
#define FAR far
#else
#define FAR _far
#endif
#ifndef MK_FP
#define MK_FP(seg,off) ((void far *)(((long)(seg) << 16)|(unsigned)(off)))
#endif
/*
** Functions in VIDPORT.C in SNIPPETS
*/
void GotoXY(int col, int row);
void ClrScrn(int vattrib);
.I 5 6
#define COLORMODE ((*(char FAR *)0x0449) != 7)
#define EXT_KBD (*(char FAR *)0x0496 & 16)
#define VIDPAGE (*((unsigned char far *)0x0462))
#define ROWSIZE (*(int FAR *)0x044A)
#define SCANLINES ((int)*(char FAR*)0x0461)
#define SCRBUFF ((unsigned FAR *)((COLORMODE)?0xB8000000:0xB0000000))
.D 6 5
.I 11 3
#define SCREENSIZE ((*(int FAR *)0x044C) >> 1)
#define SCREENCOLS (*(int FAR *)0x044A)
#define SCREENROWS ((*(char FAR *)0x0484)?1+(*(char FAR *)0x0484):25)
.D 12 3
.I 19 1
VIDPAGE = current video page in use
.D 20 1
.I 24 3
SCREENCOLS = number of columns, often 80.
SCREENROWS = number of rows, usually defaults to 25.
*/
.D 25 3